<!--帮助文档-->
<template>
  <div class="doc_box" :style="{height:height + 'px'}">
    <div class="lt">
      <el-scrollbar>
        <Menu />
      </el-scrollbar>
    </div>
    <div class="rt">
      <div class="doc_content">
        <Markdown />
      </div>
    </div>
  </div>
</template>
<script>
import Menu from "./docMenu";
import Markdown from "@/components/markdown/index";
export default {
  components: {
    Menu,
    Markdown,
  },
  layout: "docLay",
  data() {
    return {
      height: null,
    };
  },
  methods: {},
  mounted() {
    this.height = document.body.clientHeight - 80;
  },
};
</script>
<style lang="scss" scoped>
.doc_box {
  display: flex;
  flex-direction: row;
  .lt {
    width: 220px;
    background-color: #fff;
    flex-shrink: 0;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid #d3d3d3;
    border-top: 1px solid #d3d3d3;
    padding: 20px 0 30px;
    .el-scrollbar {
      height: 100%;
      /deep/ .el-scrollbar__wrap {
        overflow-x: hidden;
      }
    }
  }
  .rt {
    flex: 1;
    border-top: 1px solid #d3d3d3;
    .doc_content {
      width: 100%;
      height: 100%;
      background-color: #fff;
      padding: 0 18px;
      overflow: auto;
    }
  }
}
</style>